use crate::{action::{ActionRecordParams, ActionManager}};

use super::{utils::LibraryRequest, RouterBuilder};

pub(crate) fn mount() -> RouterBuilder {
    return RouterBuilder::new()
        .library_query("get", |t| {
            t(|_, args: ActionRecordParams, library| async move {
                let results = ActionManager::get(library.db, args).await?;
                Ok(results)
			})
        });
}
